package com.team12.hotel404.service.serviceImpl;

import com.team12.hotel404.domain.User;
import com.team12.hotel404.mapper.UserMapper;
import com.team12.hotel404.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 查找单个用户
     * @param id
     * @return 返回查找到的用户
     */

    @Override
    public User findUserByPrimaryId(Integer id) {
        return null;
    }

    @Override
    public User findByName(String name) {
        return userMapper.findByName(name);
    }
}
